
import type{ StateCreator } from 'zustand'; // 1. 导入类型
import type{ counterStoreType, questionComponentType } from '@/utils/type';





export const counterStore: StateCreator<counterStoreType> = (set) => ({
   copiedComponent:null,
   selectedId: '',
   setSelectedId: (id:string) => set(() => ({ selectedId: id })),
  setCopiedComponent: (component:questionComponentType) => set(() => ({ copiedComponent: component })),
});